export default {
	data() {
		return {
			Seriesid: null,
			Serieslist: [], //系列//选择器
			visible: true, //picker-view属性配置时间选择器
			indicatorStyle: `height: ${Math.round(uni.getSystemInfoSync().screenWidth/(750/100))}px;`, //picker-view属性配置时间选择器
			Configurationlist: [{
				date: "2020",
				list: [{
					colorList: [
					{
						outsideColor: "魔力黑",
						outsideColorCoding: "#000000"
					},
					{
						outsideColor: "鹦鹉蓝",
						outsideColorCoding: "#007dac"
					},
					{
						outsideColor: "季风灰",
						outsideColorCoding: "#2c5866"
					},
					{
						outsideColor: "海南蓝",
						outsideColorCoding: "#48689e"
					},
					{
						outsideColor: "白鲸棕",
						outsideColorCoding: "#574126"
					},
					{
						outsideColor: "西拉红",
						outsideColorCoding: "#681529"
					},
					{
						outsideColor: "喀纳斯绿",
						outsideColorCoding: "#a5beaf"
					},
					 {
						outsideColor: "探戈红",
						outsideColorCoding: "#bc0a16"
					},
					{
						outsideColor: "花剑银",
						outsideColorCoding: "#c2cbc8"
					},
					 {
						outsideColor: "钛金米",
						outsideColorCoding: "#c6bca3"
					},
					 {
						outsideColor: "星锐黄",
						outsideColorCoding: "#dbd98e"
					},
					 {
						outsideColor: "萨摩亚橙",
						outsideColorCoding: "#e38d24"
					},
					 {
						outsideColor: "冰川白",
						outsideColorCoding: "#ffffff"
					}],
					date: "2020",
					factoryprice: "18.92万",
					id: 137915,
					name: "2020款  Sportback 35 TFSI 进取型",
					theColorList: [
					 {
						theColor: "黑色",
						theColorCoding: " #000000"
					},
					{
						theColor: "黑色/灰色",
						theColorCoding: " #262326/#c2c2c2"
					},
					{
						theColor: "黑色/栗棕色",
						theColorCoding: " #000000/ #432E2B"
					},
					 {
						theColor: "黑色/黄色",
						theColorCoding: " #000000/ #C8BC2D"
					},
					{
						theColor: "黑色/红色",
						theColorCoding: " #1c1d17/ #bc0a16"
					}]
				}]
			}], //配置list-页面渲染显示
			Configuname: '', //配置name-页面渲染显示
			typeid: '',
		};
	},
	onLoad(op) {
		this.Seriesid = Number(op.Seriesid)
		this.typeid = op.type
		// this.searchBrand(this.Seriesid);
	},
	methods: {
		//选择品牌
		// searchBrand(id) {
		// 	// 点击品牌读取系列
		// 	var parmeter = {
		// 		type: 2, //0品牌/1系列/2车子
		// 		carid: id, //id
		// 	};
		// 	Core.AjaxPost(Core.Bus.BussinesscarList, parmeter, (res) => {
		// 		this.Configurationlist = res.data.Item.CarList
		// 		// if (this.Configurationlist == undefined || this.Configurationlist == '' || this.Configurationlist == 0) {
		// 		// 	this.Confmrimg = true;
		// 		// }

		// 	})
		// },
		//根据时间跳到不同的事件区域
		bindChange: function(index) {
			const val = index.detail.value
			var id = '#floor_2020'
			uni.createSelectorQuery().select(".bjcolor").boundingClientRect(data => { //目标节点
				uni.createSelectorQuery().select(id).boundingClientRect((res) => { //最外层盒子节点
					uni.pageScrollTo({
						duration: 500, //过渡时间必须为0，uniapp bug，否则运行到手机会报错
						scrollTop: res.top - 150, //滚动到实际距离是元素距离顶部的距离
					})
				}).exec()
			}).exec();
		},
		//配置赋值
		Configbtn(type) {
			//车子name
			uni.$emit('specifAll', {
				Configulist: type
			});
			//寻配件点击进入
			if (this.typeid == 120) {
				uni.navigateBack({
					delta: 3
				})
			} else {
				uni.navigateBack({
					delta: 4
				})
			}
		}
	}
}
// uni.$off('adress')
